<?php
$mchungchi=new Model_Chungchi;
if($_GET['mode'] == "delall"){
	if($_GET['check'] == "yes"){
		$mchungchi->delete_all($_POST['id']);
		redirect("index.php?module=chungchi&act=list");
	}
	$str=implode(",",$_POST['id']);
	$data['list']=$mchungchi->listselect($str);
	loadview("chungchi/delete_confirm",$data);
}else{
$data['info']=$mchungchi->listchungchi();
loadview("chungchi/list_view",$data);
}